package net.yb.dao.impl;

import net.yb.dao.UserDao;
import net.yb.entity.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * 数据访问层
 */
@Repository // 将该类交由Spring管理，即创建类的对象，并放到Spring容器中
public class UserDaoImpl implements UserDao {
    @Override
    public void test() {
        System.out.println("执行了UserDaoImpl........");
    }

    @Override
    public void selectByUsernameAndPassword(String username, String password) {
        System.out.println("根据username和password查询数据库......" + username + ":" + password);
    }

    @Override
    public void insert(User user) {
        System.out.println("插入用户信息......" + user);
    }
}
